// axios 返回值类型定义
export type BasePromiseResultType<T> = [T | null, string | null]

// 后台返回结果集定义
export interface BaseResultType<T> {
  code: number
  message: string
  data: T
}

// 返回值result类型定义
export interface ResultType<T> {
  records: T[] | []
  size: number
  total: number
  searchCount?: boolean
  current?: number
  hitCount?: boolean
  pages?: number
}
// 检索参数类型
export interface BaseParamsType<T> {
  size?: number
  current?: number
  search?: T
}

export interface RequestConfig {
  method: string
  url: string
  headers?: any | null
  data?: any | null
  params?: any | null
  cancelToken?: any
  [index: string]: any
}
